package myFilter.filter;

import myFilter.FilterChain;
import myFilter.dto.Request;
import myFilter.dto.Response;

/**
 * @author yonyong
 **/
public class UpcaseFilter implements Filter{
    @Override
    public void doFilter(Request request, Response response, FilterChain filterChain) {
        final String val = request.getVal().toUpperCase();
        request.setVal(val);
        filterChain.doFilter(request,response,filterChain);
    }
}
